import request from '@/utils/request'

// 查询融资历史列表
export function listCompanyFinancingHistory(query) {
  return request({
    url: '/financeHistory/companyFinancingHistory/list',
    method: 'get',
    params: query
  })
}

// 查询融资历史详细
export function getCompanyFinancingHistory(id) {
  return request({
    url: '/financeHistory/companyFinancingHistory/' + id,
    method: 'get'
  })
}

// 保存融资历史
export function saveCompanyFinancingHistory(data) {
  return request({
    url: '/financeHistory/companyFinancingHistory/save',
    method: 'post',
    data: data
  })
}

// 删除融资历史
export function delCompanyFinancingHistory(id) {
  return request({
    url: '/financeHistory/companyFinancingHistory/' + id,
    method: 'delete'
  })
}

// 删除列表中的出资机构
export function delCompanyInvestmentOrgan(id) {
  return request({
    url: '/financeHistory/companyFinancingHistory/delCompanyInvestmentOrgan/' + id,
    method: 'delete'
  })
}

// 导出融资历史
export function exportCompanyFinancingHistory(query) {
  return request({
    url: '/financeHistory/companyFinancingHistory/export',
    method: 'get',
    params: query
  })
}
